package cn.getech.data.development.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import cn.getech.data.development.entity.BdpServiceAlarmReceiver;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 服务告警接收人表(BdpServiceAlarmReceiver)表数据库访问层
 *
 * @author makejava
 * @since 2021-05-14 17:02:33
 */
@Mapper
public interface BdpServiceAlarmReceiverMapper extends BaseMapper<BdpServiceAlarmReceiver> {

    @MapKey("receiverId")
    List<Map<String,Object>> selectReceiverList(@Param("serviceAlarmId") Integer id,@Param("tenantId")Integer tenantId);

    Integer deleteByServiceAlarmId(@Param("serviceAlarmId") Integer id);

}
